How can I open a new dialog in an existing dialog?

I have a dialog which is getting short on real estate. So, what I would like to do is add a push button to the dialog, which, when clicked, will open another dialog(a child of the parent?).

Is this possible?

I have seen a multiple tab example on a dialog, but this will take too much time to implement.

Any suggestions on how to accomplish this?

Thank you
Gedinfo - Fri Feb 10 12:47:24 EST 2012

Re: How can I open a new dialog in an existing dialog?
llandale - Fri Feb 10 20:49:13 EST 2012

If the 2nd dialog is supposed to gather input for the 1st dialog, then it should be invoked with the "block" command. When the 2nd one is "released", code reverts back to the 1st callback. Search the DXL forum for "block" and "release"; it's tricky at first especially if when the 2nd one needs to pass data to the 1st.

If you want to be able to switch back and forth between the two dialogs, then the 2nd dialog should be displayed with "show" (and I'd suspect you have a conceptual problem).

If you want the dialogs displayed in order such that the 1st dialog disappears when you invoke the 2nd one, then the callback should hide and destroy the 1st and then create and show the 2nd.

"child" and "parent", BTW, as far as I can tell only means that when the "child" dialog is closed, the "parent" is brought to the top of the display. However, if the "child" is "blocked" and then "released", code resumes in the "parent" after the "block" command; thus "block" creates a more intuitive child-parent relationship than does putting the parent DB name in the "create" command of the child DB; although its likely you want to do that as well.

-Louie